const state = {
  money: 1
}

const mutations = {
  increment(state) {
    state.money++
  },
  decrement(state) {
    state.money--
  }
}

const actions = {
  increment: ({ commit }, payload) => {
    console.log(payload)
    commit('increment')
  },

  decrement: ({ commit }) => {
    commit('decrement')
  }

}


export default {
  namespaced: true,
  state, actions, mutations
}